

Pod::Spec.new do |s|
  s.name             = "HHNetworkKit"
  s.version          = "1.0.0"
  s.summary          = "iOS 网络库组件"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of Huihui Health

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/HHNetworkKit.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "yeqingnaruto" => "yeqingnaruto@didichuxing.com" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/HHNetworkKit.git", :branch => "master" }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '8.0'
  s.requires_arc = true
  s.default_subspec = 'Http'
  
  #Engine 模块
  s.subspec 'Engine' do |engine|
    engine.public_header_files = 'Engine/**/*.h'
    engine.source_files = 'Engine/**/*.{h,m}'
    engine.dependency 'BCModel'
    engine.dependency 'BCFoundation'
    engine.dependency 'AFNetworking'
  end
  
  #http 模块
  s.subspec 'Http' do |http|
      http.public_header_files = 'Http/**/*.h'
      http.source_files = 'Http/**/*.{h,m}'
      http.dependency 'BCFileLog'
      http.dependency 'HHNetworkKit/Engine'
  end
  
  #下载 模块
  s.subspec 'Download' do |download|
      download.public_header_files = 'Download/**/*.h'
      download.source_files = 'Download/**/*.{h,m}'
      download.dependency 'BCFoundation'
      download.dependency 'AFNetworking'
  end
  
  #网络状态 模块
  s.subspec 'Reachability' do |reachability|
      reachability.public_header_files = 'Reachability/**/*.h'
      reachability.source_files = 'Reachability/**/*.{h,m}'
      reachability.dependency 'BCFoundation'
      reachability.dependency 'BCEventBus'
  end

  
  #网络状态 模块
  # s.subspec 'AFNetworking' do |afnetworking|
  #     afnetworking.public_header_files = 'AFNetworking/**/*.h'
  #     afnetworking.source_files = 'AFNetworking/**/*.{h,m}'
  # end

end
